package com.anxin.act.task.entity;

import com.anxin.common.utils.DateUtils;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.anxin.framework.aspectj.lang.annotation.Excel;
import com.anxin.framework.web.entity.BaseEntity;
import java.util.Date;

/**
 * 流程任务推送记录对象 wf_push_log
 *
 * @author jbs
 * @date 2022-04-13
 */
//@ApiModel(description = "流程任务推送记录")
public class WfPushLog extends BaseEntity<WfPushLog>{
    private static final long serialVersionUID = 1L;

    /** 流程ID */
    //@ApiModelProperty(value = "流程ID",position=20)
    private String actId;

    /** 任务ID */
    //@ApiModelProperty(value = "任务ID",position=30)
    private String taskId;

    /** 待办标题 */
    //@ApiModelProperty(value = "待办标题",position=30)
    private String actTitle;

    /** 发送时间 */
    //@ApiModelProperty(value = "发送时间",position=40)
    private Date pushTime;

    /** 发送类型 */
    //@ApiModelProperty(value = "发送类型",position=50)
    private String pushType;

    /** 发送状态 */
    //@ApiModelProperty(value = "发送类型",position=50)
    private String status;

    /** 详情 */
    //@ApiModelProperty(value = "详情",position=50)
    private String message;

    /** 任务归属人 */
    //@ApiModelProperty(value = "任务归属人",position=60)
    private String actOwner;

    /** 任务审批人 */
    //@ApiModelProperty(value = "任务审批人",position=60)
    private String actAssignee;



    /**
     * 开始时间
     */
    private String beginTime;

    /**
     * 结束时间
     */
    private String endTime;
    private String userName;

    public WfPushLog(){

    }

    public WfPushLog(ViewRuTask viewRuTask){
        this.actId = viewRuTask.getActId();
        this.taskId = viewRuTask.getId();
        this.pushTime = DateUtils.getNowDate();
        this.pushType = "TODO";
    }

    public WfPushLog(ViewHiTask viewHiTask){
        this.actId = viewHiTask.getActId();
        this.taskId = viewHiTask.getId();
        this.pushTime = DateUtils.getNowDate();
        this.pushType = "HI";
    }


    public void setActId(String actId){
        this.actId = actId;
    }

    public String getActId(){
        return actId;
    }
    public void setTaskId(String taskId){
        this.taskId = taskId;
    }

    public String getTaskId(){
        return taskId;
    }
    public void setPushTime(Date pushTime){
        this.pushTime = pushTime;
    }

    public Date getPushTime(){
        return pushTime;
    }
    public void setPushType(String pushType){
        this.pushType = pushType;
    }

    public String getPushType(){
        return pushType;
    }

    public String getActOwner() {
        return actOwner;
    }

    public void setActOwner(String actOwner) {
        this.actOwner = actOwner;
    }

    public String getActAssignee() {
        return actAssignee;
    }

    public void setActAssignee(String actAssignee) {
        this.actAssignee = actAssignee;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    public String getBeginTime() {
        return beginTime;
    }


    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }


    public String getEndTime() {
        return endTime;
    }


    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getActTitle() {
        return actTitle;
    }

    public void setActTitle(String actTitle) {
        this.actTitle = actTitle;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("actId", getActId())
            .append("taskId", getTaskId())
            .append("pushTime", getPushTime())
            .append("pushType", getPushType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
